Optimal. Leaf size=90 \[ \frac {(a-2 b) \text {ArcTan}\left (\frac {\sqrt {b} \cosh (c+d x)}{\sqrt {a-b}}\right )}{2 (a-b)^{3/2} b^{3/2} d}-\frac {a \cosh (c+d x)}{2 (a-b) b d \left (a-b+b \cosh ^2(c+d x)\right )} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.08, antiderivative size = 90, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 3, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.130, Rules used = {3265, 393, 211}
\begin {gather*} \frac {(a-2 b) \text {ArcTan}\left (\frac {\sqrt {b} \cosh (c+d x)}{\sqrt {a-b}}\right )}{2 b^{3/2} d (a-b)^{3/2}}-\frac {a \cosh (c+d x)}{2 b d (a-b) \left (a+b \cosh ^2(c+d x)-b\right )} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 211
Rule 393
Rule 3265
Rubi steps
\begin {align*} \int \frac {\sinh ^3(c+d x)}{\left (a+b \sinh ^2(c+d x)\right )^2} \, dx &=-\frac {\text {Subst}\left (\int \frac {1-x^2}{\left (a-b+b x^2\right )^2} \, dx,x,\cosh (c+d x)\right )}{d}\\ &=-\frac {a \cosh (c+d x)}{2 (a-b) b d \left (a-b+b \cosh ^2(c+d x)\right )}+\frac {(a-2 b) \text {Subst}\left (\int \frac {1}{a-b+b x^2} \, dx,x,\cosh (c+d x)\right )}{2 (a-b) b d}\\ &=\frac {(a-2 b) \tan ^{-1}\left (\frac {\sqrt {b} \cosh (c+d x)}{\sqrt {a-b}}\right )}{2 (a-b)^{3/2} b^{3/2} d}-\frac {a \cosh (c+d x)}{2 (a-b) b d \left (a-b+b \cosh ^2(c+d x)\right )}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains complex when optimal does not.
time = 0.43, size = 141, normalized size = 1.57 \begin {gather*} \frac {\frac {(a-2 b) \left (\text {ArcTan}\left (\frac {\sqrt {b}-i \sqrt {a} \tanh \left (\frac {1}{2} (c+d x)\right )}{\sqrt {a-b}}\right )+\text {ArcTan}\left (\frac {\sqrt {b}+i \sqrt {a} \tanh \left (\frac {1}{2} (c+d x)\right )}{\sqrt {a-b}}\right )\right )}{(a-b)^{3/2}}-\frac {2 a \sqrt {b} \cosh (c+d x)}{(a-b) (2 a-b+b \cosh (2 (c+d x)))}}{2 b^{3/2} d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 1.04, size = 155, normalized size = 1.72
method | result | size |
derivativedivides | \(\frac {\frac {8 \left (2 a -4 b \right ) \left (\tanh ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-16 a}{\left (16 a b -16 b^{2}\right ) \left (a \left (\tanh ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-2 a \left (\tanh ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+4 b \left (\tanh ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+a \right )}+\frac {4 \left (2 a -4 b \right ) \arctan \left (\frac {2 a \left (\tanh ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-2 a +4 b}{4 \sqrt {a b -b^{2}}}\right )}{\left (16 a b -16 b^{2}\right ) \sqrt {a b -b^{2}}}}{d}\) | \(155\) |
default | \(\frac {\frac {8 \left (2 a -4 b \right ) \left (\tanh ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-16 a}{\left (16 a b -16 b^{2}\right ) \left (a \left (\tanh ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-2 a \left (\tanh ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+4 b \left (\tanh ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+a \right )}+\frac {4 \left (2 a -4 b \right ) \arctan \left (\frac {2 a \left (\tanh ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-2 a +4 b}{4 \sqrt {a b -b^{2}}}\right )}{\left (16 a b -16 b^{2}\right ) \sqrt {a b -b^{2}}}}{d}\) | \(155\) |
risch | \(-\frac {a \,{\mathrm e}^{d x +c} \left (1+{\mathrm e}^{2 d x +2 c}\right )}{b d \left (a -b \right ) \left (b \,{\mathrm e}^{4 d x +4 c}+4 a \,{\mathrm e}^{2 d x +2 c}-2 b \,{\mathrm e}^{2 d x +2 c}+b \right )}+\frac {\ln \left ({\mathrm e}^{2 d x +2 c}-\frac {2 \left (a -b \right ) {\mathrm e}^{d x +c}}{\sqrt {-a b +b^{2}}}+1\right )}{2 \sqrt {-a b +b^{2}}\, \left (a -b \right ) d}-\frac {\ln \left ({\mathrm e}^{2 d x +2 c}-\frac {2 \left (a -b \right ) {\mathrm e}^{d x +c}}{\sqrt {-a b +b^{2}}}+1\right ) a}{4 \sqrt {-a b +b^{2}}\, \left (a -b \right ) d b}-\frac {\ln \left ({\mathrm e}^{2 d x +2 c}+\frac {2 \left (a -b \right ) {\mathrm e}^{d x +c}}{\sqrt {-a b +b^{2}}}+1\right )}{2 \sqrt {-a b +b^{2}}\, \left (a -b \right ) d}+\frac {\ln \left ({\mathrm e}^{2 d x +2 c}+\frac {2 \left (a -b \right ) {\mathrm e}^{d x +c}}{\sqrt {-a b +b^{2}}}+1\right ) a}{4 \sqrt {-a b +b^{2}}\, \left (a -b \right ) d b}\) | \(310\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 953 vs.
\(2 (78) = 156\).
time = 0.44, size = 1889, normalized size = 20.99 \begin {gather*} \text {Too large to display} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: TypeError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {{\mathrm {sinh}\left (c+d\,x\right )}^3}{{\left (b\,{\mathrm {sinh}\left (c+d\,x\right )}^2+a\right )}^2} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________